package com.sharp.core.graphics;

import com.sharp.core.raytrace.Camera;

public abstract class Graphic {

	private static Graphic g;
	
	public abstract void init(int width, int height, int bpp);
	public abstract void drawPixel(Camera cam, int x, int y, Color c);
	public abstract void clean();
	public abstract void update();
	
	public static void setGraphic(Graphic gr) {
		g = gr;
	}
	
	public static Graphic instance() {
		return g;
	}
}
